Hello,
I publishing a web service called "Almacenar Datos" which it is responsible for receiving data (file:”llamada.xml” -- code added to the end ) XSD format as we have previously defined in WebRatio and treat your data.
On one hand we have information that will identify where we need to add the new data as it is information that we previously stored in the database using the site view "Administration". In my case this information would be:
<Empresa>Domino's Pizza</Empresa>
<Servicio>
<Calidad_llamada>50</Calidad_llamada>
</Servicio>
<Llamadas>
<Llamada>
……..
<Tipo>Consulta</Tipo>
<Evento>1</Evento>
</Llamada>
</Llamadas>
On the other hand we have new information to add to the database and that has to be related to the identifying information mentioned in the previous point.. In my case this information would be:
<Llamadas>
<Llamada>
<Tlf>92454321</Tlf>
<Operador>Peter</Operador>
<Duracion>70</Duracion>
<Retencion>20</Retencion>
<Realizado>Si</Realizado>
<Fecha_hora>04/06/2014 11:18:00</Fecha_hora>
</Llamada>
</Llamadas>
To end the information received by the web service would like to know if this service can perform calculations. Eg from <Fecha_hora> field where is set the time of the call with this information, relate the entity "Llamadas" to the relevant entity "Franja Horaria".
The "Franja Horaria" entity related calls within a timespan.
I would be grateful if you could send me some examples of the features implemented in my web project, adding the XSD file for formatting information in the web service.(acendran@gmail.com).
I can send my web project to anyone who can help me to watch the Domain Model and the rest of the project.
Thank you in advance.
Adrián Cendrán
--------------------------------------------------------------------------
File: llamada.xml:
<?xml version="1.0" encoding="UTF-8"?>
<inv:CallCenter xmlns:inv="urn:callcenter.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Empresa>Domino's Pizza</Empresa>
<Servicio>
<Calidad_llamada>50</Calidad_llamada>
</Servicio>
<Llamadas>
<Llamada>
<Tlf>92454321</Tlf>
<Operador>Peter</Operador>
<Duracion>70</Duracion>
<Retencion>20</Retencion>
<Realizado>Si</Realizado>
<Fecha_hora>04/06/2014 11:18:00</Fecha_hora>
<Tipo>Consulta</Tipo>
<Evento>1</Evento>
</Llamada>
<Llamada>
<Tlf>924879456</Tlf>
<Operador>John</Operador>
<Duracion>60</Duracion>
<Retencion>10</Retencion>
<Realizado>Si</Realizado>
<Fecha_hora>04/06/2014 11:19:00</Fecha_hora>
<Tipo>Incidencia</Tipo>
<Evento>2</Evento>
</Llamada>
</Llamadas>
</inv:CallCenter>
File: llamadas.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:llamada.com" xmlns:inv="urn:llamada.com">
<xsd:element name="CallCenter" type="inv:CallCenterType" />
<xsd:complexType name="CallCenterType">
<xsd:sequence>
<xsd:element name="Empresa" type="inv:EmpresaType"/>
<xsd:element name="Servicio" type="inv:ServicioType"/>
<xsd:element name="Llamadas" type="inv:ItemsType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="EmpresaType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="([a-z][A-Z])+"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="ServicioType">
<xsd:sequence>
<xsd:element name="Calidad_llamada" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ItemsType">
<xsd:sequence>
<xsd:element name="Llamada" type="inv:ItemType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ItemType">
<xsd:sequence>
<xsd:element name="Tlf" type="xsd:string"/>
<xsd:element name="Operador" type="xsd:string"/>
<xsd:element name="Duracion" type="inv:TiempoType"/>
<xsd:element name="Retencion" type="inv:TiempoType"/>
<xsd:element name="Realizado" type="inv:BooleanType"/>
<xsd:element name="Fecha_hora" type="xsd:string"/>
<xsd:element name="Tipo" type="inv:ListType"/>
<xsd:element name="Evento" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="TiempoType">
<xsd:restriction base="xsd:nonNegativeInteger">
<xsd:minExclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="BooleanType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Si"/>
<xsd:enumeration value="No"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ListType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Broma/Error" />
<xsd:enumaration value="Consulta" />
<xsd:enumeration value="Pedido Realizado" />
<xsd:enumaration value="Reclamación" />
<xsd:enumeration value="Incidencia" />
<xsd:enumaration value="Servicio no disponible en Dirección" />
<xsd:enumeration value="Cuelga en Cliente en retención" />
<xsd:enumaration value="Cola Saturada" />
<xsd:enumeration value="Superado porcentaje de retención" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>